


$.ajax({
    type:'post',//post方法默认是表单数据提交，用requestParameter接收，如果要用jason需要配置在conmmon.js中的第一行有配置
    url:'/studentManageSystem/getTeacherInfo',//请求的controller

    success:function (r) {

        vm.teacherInfo= r.data;

        vm.teacherInfo.birthday=r.data.birthday.substring(0,10)

    },
})
var vm = new Vue({
    el:'#missions',
    data:{
        selectedProject:'',
        showlist:1,
        title:'查看个人信息',
        teacherInfo:{id:'',name:'',age:'',positionName:'',workrolename:'',tel:'',email:'',
            sex:'',birthday:'',nation:'', address:''
        },


    },


})

